# -*- coding: utf-8 -*-


from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import Qt
from gui import pics


class Ui_Form(object):
    def setupUi(self, CorrectWindow):
        CorrectWindow.setObjectName("CorrectWindow")
        CorrectWindow.resize(350, 170)
        CorrectWindow.setMinimumSize(QtCore.QSize(350, 170))
        CorrectWindow.setMaximumSize(QtCore.QSize(350, 170))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("ahut.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        CorrectWindow.setWindowIcon(icon)
        CorrectWindow.setStyleSheet("background-color: rgb(255, 255, 255);")
        self.label = QtWidgets.QLabel(CorrectWindow)
        self.label.setGeometry(QtCore.QRect(140, 10, 80, 80))
        self.label.setText("")
        self.label.setPixmap(QtGui.QPixmap(":/pass_icon/pass.png"))
        self.label.setScaledContents(True)
        self.label.setObjectName("label")
        self.label_error = QtWidgets.QLabel(CorrectWindow)
        self.label_error.setGeometry(QtCore.QRect(128, 95, 111, 31))
        font = QtGui.QFont()
        font.setFamily("微软雅黑")
        font.setPointSize(18)
        font.setBold(True)
        font.setWeight(75)
        self.label_error.setFont(font)
        self.label_error.setObjectName("label_error")
        self.cancel_button = QtWidgets.QPushButton(CorrectWindow)
        self.cancel_button.setGeometry(QtCore.QRect(129, 135, 101, 31))
        self.cancel_button.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.cancel_button.setStyleSheet("QPushButton{background:rgb(147, 220, 240)}\n"
                                         "\n"
                                         "QPushButton{\n"
                                         "font: 75 12pt \\\"微软雅黑\\\";\n"
                                         "color:rgb(255, 255, 255)\n"
                                         "}\n"
                                         "\n"
                                         "QPushButton{border-radius:10px}\n"
                                         "\n"
                                         "QPushButton:hover{background:rgb(138, 210, 218)}\n"
                                         "\n"
                                         "QPushButton:pressed\n"
                                         "{\n"
                                         "    background:rgb(147, 220, 240);\n"
                                         "    padding-left:2px;\n"
                                         "    padding-top:2px;\n"
                                         "    \n"
                                         "}")
        self.cancel_button.setObjectName("cancel_button")
        self.cancel_button.clicked.connect(CorrectWindow.cancel)
        # self.label_error.adjustSize()
        self.label_error.setAlignment(Qt.AlignCenter)

        self.retranslateUi(CorrectWindow)
        QtCore.QMetaObject.connectSlotsByName(CorrectWindow)

    def retranslateUi(self, CorrectWindow):
        _translate = QtCore.QCoreApplication.translate
        CorrectWindow.setWindowTitle(_translate("CorrectWindow", "Pass_Regist"))
        self.label_error.setText(_translate("CorrectWindow", "成功"))
        self.cancel_button.setText(_translate("CorrectWindow", "确认"))
